import Request from '@/utils/request/request-util';

/**
 * 后台管理 -应用api
 *
 */
export class SampleApi {
    /**
   * 分页
   * @param {*} params
   * @returns
   */
  static findPage(params) {
    return Request.getAndLoadData('/api/service/sampleData/page', params);
  }

  /**
   * 添加
   * @param {*} params
   * @returns
   */
  static add(params) {
    return Request.post('/api/service/sampleData/add', params);
  }
  /**
   * 编辑
   * @param {*} params
   * @returns
   */
  static edit(params) {
    return Request.post('/api/service/sampleData/edit', params);
  }
  /**
   * 删除单个
   * @param {*} params
   * @returns
   */
  static delete(params) {
    return Request.post('/api/service/sampleData/delete', params);
  }
  /**
   * 删除批量
   * @param {*} params
   * @returns
   */
  static batchDelete(params) {
    return Request.post('/api/service/sampleData/batchDelete', params);
  }
  /**
   * 详情
   * @param {*} params
   * @returns
   */
  static detail(params) {
    return Request.getAndLoadData('/api/service/sampleData/detail', params);
  }
  /**
   * 列表
   * @param {*} params
   * @returns
   */
  static list(params) {
    return Request.getAndLoadData('/api/service/sampleData/list', params);
  }


 /**
   * 获取存储位置列表
   * @param {*} params
   * @returns
   */
  static storageLocatioslist(params) {
    return Request.getAndLoadData('/api/service/sampleStorageLocation/list', params);
  }

}